﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pay.WxPay
{
    public class WXResponse
    {
        public string Code { get; set; }
        public string Msg { get; set; }
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();
            sb.Append("<xml>");
            sb.AppendFormat("<return_code><![CDATA[{0}]]></return_code>", Code);
            sb.AppendFormat("<return_msg><![CDATA[{0}]]></return_msg>", Msg);
            sb.Append("</xml>");
            return sb.ToString();
        }
    }
}
